<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="shortcut icon" href="../../assets/ico/favicon.ico">
    <link href="view/Bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css"/>
    <title>Navbar Template for Bootstrap</title>
<%@page import="org.apache.jasper.tagplugins.jstl.core.Import"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="javax.servlet.http.HttpSession" %>
    <!-- Bootstrap core CSS -->
    

    <!-- Custom styles for this template -->
    <link href="navbar.css" rel="stylesheet">
  </head>

  <body style="padding-top: 60px">

    <div class="container">
       
      <!-- Static navbar -->
      <%@include file="Menu.jsp" %>
      <img src="view/Images/015114.jpg" alt="" width="100%" height="350"/>
      <div class="jumbotron">
           <%
            HttpSession ss = request.getSession(); 
             if(ss.getAttribute("SSUser")== null)
             {
                 %>
                 <div class="row">
                 <div class="col-md-7">
                     <form class="form-horizontal" role="form" method="POST" action="CLogin">
                     <div class="form-group">
                       <label for="inputEmail3" class="col-sm-3 control-label">Tài khoản</label>
                       <div class="col-sm-6">
                           <input type="text" name="txtUser" class="form-control input-sm" id="inputEmail3" placeholder="Tên tài khoản">
                       </div>
                     </div>
                     <div class="form-group">
                       <label for="inputPassword3" class="col-sm-3 control-label">Mật khẩu</label>
                       <div class="col-sm-6">
                         <input type="password" name="txtPass" class="form-control input-sm" id="inputPassword3" placeholder="Mật khẩu">
                       </div>
                     </div>
                     <div class="form-group">
                       <div class="col-sm-offset-3 col-sm-10">
                         <button type="submit" class="btn btn-primary">Đăng nhập</button>
                       </div>
                     </div>
                   </form>
                 </div>
        <%
            }
             else
             {
                 %>
                 <form method="POST" action="CLogin">
                     <button name="btnOut" value="btnOut" type="submit" >Đăng xuất</button>
                 </form>
        <%
             }
        %>
        
      </div>
      </div>

    </div> <!-- /container -->


    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
    <script src="view/Bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
  </body>
</html>


